﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="download_show.aspx.cs" Inherits="DtCms.Web.download_show" ValidateRequest="false" %>
<%@ Import namespace="DtCms.Common" %>
<%@ Register TagPrefix="DtContorl" Namespace="DtCms.Web.UI" Assembly="DtCms.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><%=model.Title %> - <%=SiteConfig.WebName%></title>
<!-- ===== seo ===== -->
<%=AddMetaInfo(SiteConfig.WebKeywords, SiteConfig.WebDescription)%>
<!-- ===== css ===== -->
<link rel="shortcut icon" href="<%=SiteConfig.WebPath%>favicon.ico" mce_href="<%=SiteConfig.WebPath%>favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="<%=SiteTemplatePath("timber")%>css/style.css" />
<script type="text/javascript" src="<%=SiteConfig.WebPath%>js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="<%=SiteTemplatePath("timber")%>js/base.js"></script>
<script src="<%=SiteTemplatePath("timber")%>js/base.js" type="text/javascript"></script>

<link type="text/css" rel="stylesheet" href="<%=SiteConfig.WebPath%>images/library/msg.css" />
<link type="text/css" rel="stylesheet" href="<%=SiteConfig.WebPath%>css/pagination.css" />
<script type="text/javascript" src="<%=SiteConfig.WebPath%>js/jquery.form.js"></script>
<script type="text/javascript" src="<%=SiteConfig.WebPath%>js/jquery.validate.min.js"></script>
<script type="text/javascript" src="<%=SiteConfig.WebPath%>js/messages_cn.js"></script>
<script type="text/javascript" src="<%=SiteConfig.WebPath%>images/library/msg.js"></script>
<script type="text/javascript" src="<%=SiteConfig.WebPath%>js/jquery.pagination.js"></script>
<script type="text/javascript" src="<%=SiteTemplatePath("default")%>js/send_json.js"></script>
<script type="text/javascript" src="<%=SiteTemplatePath("default")%>js/comment.js"></script>
<script type="text/javascript">
$(function() {
    //初始化星级事件
    CommentStar("#comment #stars", "#comment #stars a", "#hidStar");
    //初始化评论列表
    AjaxCommentList("#pagination", 10, <%=Comment_Count(this.kindId, this.Id)%>, "<%=SiteConfig.WebPath%>Tools/Comment_json.ashx?action=list&kindId=<%=this.kindId%>&parentId=<%=this.Id%>");
    //初始化发表评论表单
    AjaxOnSubmit("comment_form", "btnSubmit", "<%=SiteConfig.WebPath%>Tools/Comment_json.ashx?action=add&kindId=<%=this.kindId%>&parentId=<%=this.Id%>");
});
</script>

</head>
<body>

<!--[if lt IE 7]>
	<div style='border: 1px solid #F7941D; background: #FEEFDA; text-align: center; clear: both; height: 75px; position: relative;'>
		<div style='position: absolute; right: 3px; top: 3px; font-family: courier new; font-weight: bold;'><a href='#' onclick='javascript:this.parentNode.parentNode.style.display="none"; return false;'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-cornerx.jpg' style='border: none;' alt='关闭此通知'/></a></div>
		<div style='width: 640px; margin: 0 auto; text-align: left; padding: 0; overflow: hidden; color: black;'>
			<div style='width: 75px; float: left;'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-warning.jpg' alt='Warning!'/></div>
			<div style='width: 275px; float: left; font-family: Arial, sans-serif;'>
				<div style='font-size: 14px; font-weight: bold; margin-top: 12px;'>您使用的是过时的浏览器</div>
				<div style='font-size: 12px; margin-top: 6px; line-height: 14px;'>为了获得更好的浏览体验，<br />推荐使用右侧所示的先进浏览器。</div>
			</div>
			<div style='width: 75px; float: left;'><a href='http://www.firefox.com' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-firefox.jpg' style='border: none;' alt='Get Firefox'/></a></div>
			<div style='width: 75px; float: left;'><a href='http://windows.microsoft.com/zh-CN/internet-explorer/downloads/ie' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-ie8.jpg' style='border: none;' alt='Get Internet Explorer'/></a></div>
			<div style='width: 73px; float: left;'><a href='http://www.apple.com/safari/download/' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-safari.jpg' style='border: none;' alt='Get Safari'/></a></div>
			<div style='float: left;'><a href='http://www.google.com/chrome' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-chrome.jpg' style='border: none;' alt='Get Google Chrome'/></a></div>
		</div>
	</div>
<![endif]-->


<ul class="nav">
	    <li><a href="<%=URLRewrite("index", "")%>" class="current"><span>主页</span></a></li>
		<li><a href="<%=URLRewrite("article", "")%>"><span>公司动态</span></a></li>
		<li><a href="<%=URLRewrite("picture", "")%>"><span>公司产品</span></a></li>
		<li><a href="<%=URLRewrite("feedback", "")%>"><span>在线留言</span></a></li>
        <li><a href="<%=URLRewrite("content", "about")%>"><span>关于我们</span></a></li>
</ul>


<!-- ===== 正文内容 ===== -->
<div class="container">
	
<form action="" id="search-form" onsubmit="SiteSearch('<%=SiteConfig.WebPath%>search.aspx', '#txtKeywords');">
	<fieldset>
        <input id="txtKeywords" name="txtKeywords" type="text" class="text" value="<%=Request.QueryString["keyword"]%>" />
            <input type="button" class="submit" onclick="SiteSearch('<%=SiteConfig.WebPath%>search.aspx', '#txtKeywords');" value="搜索" />
   	</fieldset>
</form>


	<div class="clear"></div>
	<!-- ===== 面包屑与功能按钮 ===== -->
	<div class="bread_crumbs"><a href="<%=URLRewrite("index", "")%>">主页</a> > <a href="<%=URLRewrite("download", "")%>">下载中心</a>  <%=GetChannel_Menu("download_list1", model.ClassId) %>
		<div class="right_function_key"> <a href="javascript:void(0);" onclick="SetFontSize('.content_box', 12);"><img src="<%=SiteTemplatePath("default")%>images/font_delete.png" width="16" height="16" /> 缩小</a><a href="javascript:void(0);" onclick="SetFontSize('.content_box', 14);"><img src="<%=SiteTemplatePath("default")%>images/font_add.png" width="16" height="16" /> 放大</a><a href="javascript:window.print();"><img src="<%=SiteTemplatePath("default")%>images/printer.png" width="16" height="16" /> 打印</a> </div>
	</div>
	<!-- ===== 左侧正文 ===== -->
	<div class="page_left">
		<h2 id="news_title"><%=model.Title %></h2>
		<i class="date_i">所属类别：<%=GetChannel_Title(model.ClassId)%> &nbsp;&nbsp; 浏览数量：<%=model.Click%> &nbsp;&nbsp; 发布时间：<%=model.AddTime%></i>
		<!-- ===== 编辑框内容 开始 ===== -->
		<div class="content_box">
			<%=model.Content%>
			<!-- ===== 下载页面固定格式 ===== -->
			<div class="blue_box"><a href="<%=SiteConfig.WebPath%>Tools/download.ashx?id=<%=model.Id %>">下载 <%=model.Title%></a></div>
			<p>文件类型：<%=model.FileType%><br />
				文件大小：<%=model.FileSize < 1024 ? model.FileSize + " KB" : (model.FileSize / 1024).ToString("#.##")+" MB"%><br />
				下载次数：<%=model.DownNum%><br />
			</p>
		</div>
		<div class="addthis">
			<!-- JiaThis Button BEGIN -->
			<div id="ckepop"><a href="http://www.jiathis.com/share/" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank">分享</a><span class="jiathis_separator">|</span> <a class="jiathis_button_qzone"></a><a class="jiathis_button_tsina"></a><a class="jiathis_button_icons_1"></a><a class="jiathis_button_icons_2"></a></div>
			<script type="text/javascript" src="http://v1.jiathis.com/code/jia.js" charset="utf-8"></script>
			<!-- JiaThis Button END -->
		</div>
		<div class="clear"></div>
		<!-- ===== 前后与返回 Previous, Next and Back ===== -->
		<div class="p_n_b">
		    <%if(GetDownloadsId("IsLock=0 and Id<" + model.Id)>0){%>
		    <a class="previous" href="<%=URLRewrite("download_show", GetDownloadsId("IsLock=0 and Id<" + model.Id))%>">« 上一篇</a>
		    <%}else{ %>
		     <a class="previous">上一篇没有啦</a>
		    <%} %>
		    <a class="back" href="javascript:history.back(-1);">返回</a>
		    <%if(GetDownloadsId("IsLock=0 and Id>" + model.Id)>0){%>
		    <a class="next" href="<%=URLRewrite("download_show", GetDownloadsId("IsLock=0 and Id>" + model.Id))%>">下一篇 »</a>
		    <%}else{ %>
		     <a class="next">下一篇没有啦</a>
		    <%} %>
		</div>
		<div class="clear"></div>
		<!-- ===== 用户留言评论 ===== -->
		<%if(model.IsMsg > 0){ %>
        
		<h2 id="page_title"><%=Comment_Count(this.kindId,  model.Id)%> 条评论</h2>
		<div id="comment">
			<div id="commentList">
				显示评论列表
			</div>
			<%if(Comment_Count(this.kindId, this.Id)>0) {%>
            <div id="pagination" class="scott"></div>
            <%} %>
            <div class="clear"></div>
			<!--用户评价开始-->
			<div class="commentform clearfix">
				<div class="nTitle">发表评论</div>
				<form id="comment_form" name="comment_form">
					<dl>
						<dt>用户昵称：</dt>
						<dd style="width:250px;">
							<input name="txtUserName" type="text" maxlength="30" class="input2 required">
							&nbsp;</dd>
						<dt>评价等级：</dt>
						<dd>
                          <span id="stars" class="star star0">
                            <a title="一星级">1</a>
                            <a class="a2" title="二星级">2</a>
                            <a class="a3" title="三星级">3</a>
                            <a class="a4" title="四星级">4</a>
                            <a class="a5" title="五星级">5</a>
                          </span>&nbsp;
                          <input id="hidStar" name="hidStar" type="hidden" value="" class="required" />
                        </dd>
					</dl>
					<dl>
						<dt>评论内容：</dt>
						<dd>
							<textarea name="txtContent" class="textarea required" minlength="5" maxlength="3000"></textarea>
							&nbsp;</dd>
					</dl>
					<dl>
						<dt>验证码：</dt>
						<dd style="width:385px;">
							<input name="txtCode" type="text" class="input2 required" minlength="4" maxlength="5" style="width:50px;">
							<a href="javascript:void(0);" onclick="ToggleCode(this, '<%=SiteConfig.WebPath%>Tools/VerifyCodeImage.ashx');return false;"><img src="<%=SiteConfig.WebPath%>Tools/VerifyCodeImage.ashx" width="80" height="22" alt="点击切换验证码" style="vertical-align:middle;"> 看不清楚？</a> </dd>
						<dd>
							<input id="btnSubmit" name="btnSubmit" type="submit" class="submit2" value="提交评论">
						</dd>
					</dl>
					<div class="clear"></div>
				</form>
			</div>
			<!--用户评价结束-->
		</div>

        <%} %>
	</div>
	<!-- ===== 左侧子导航 ===== -->
	<div class="page_right">
		<h3>下载类别</h3>
		<ul class="sidebar_nav">
			<%=GetChannel_List(this.kindId, 0, "download_list1")%>
		</ul>
		<h3>推荐下载</h3>
		<ul class="sidebar_news">
			<DtContorl:Repeater ID="rptList2" runat="server" onload="Download_List_DataBind" Top="8" Where="IsLock=0 and IsRed=1">
              <ItemTemplate>
			    <li><a href="<%#URLRewrite("download_show", Eval("Id")) %>"><%#Eval("Title")%></a><i><span><%#Comment_Count(this.kindId,  Convert.ToInt32(Eval("Id")))%> 评论</span><%#Eval("AddTime")%></i></li>
              </ItemTemplate>
            </DtContorl:Repeater>
		</ul>
	</div>
	<div class="clear"></div>
</div>


<div id="footer">
    <div class="link">
        <a href="http://www.cqc-sai.com/default.htm" target="_blank"><img src="<%=SiteTemplatePath("timber")%>images/link/fsc.png" alt="" /></a>
        <a href="http://www.cn.sgs.com/zh/" target="_blank"><img src="<%=SiteTemplatePath("timber")%>images/link/sgs.png" alt="" /></a>
        <a href="http://www.000592.com/web/index.html" target="_blank"><img src="<%=SiteTemplatePath("timber")%>images/link/zhongfu.png" alt="" /></a>
        <a href="content.aspx?page=inspection" target="_blank"><img src="<%=SiteTemplatePath("timber")%>images/link/inspection.png" alt="" /></a>
	</div>
    <div class="container">
		<p class="footer_links"><a href="<%=URLRewrite("content", "about")%>">关于我们</a>|<a href="<%=URLRewrite("content", "contact")%>">联系我们</a>|<a href="<%=URLRewrite("feedback", "")%>">在线留言</a>|<a target="_blank" href="admin/Login.aspx">站点管理</a></p> 
	    <p class="copyright">版权所有 &copy; 上海福人木业 <script src="http://s24.cnzz.com/stat.php?id=1996164&web_id=1996164&show=pic" language="JavaScript"></script></p>
    </div>
</div>

</body>
</html>

<!-- 本页面代码由DTCMS模板引擎生成于 2012/3/21 11:12:07 -->